package cn.edu.ctbu.firstdp.service;

import cn.edu.ctbu.firstdp.dao.CourseRepository;
import cn.edu.ctbu.firstdp.entity.Course;
import cn.edu.ctbu.firstdp.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseService {
    @Autowired
    public CourseRepository courseRepository;
    public List<Course> findByCno(String cno){
        return courseRepository.findByCno(cno);
    }

}
